/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-07-03 17:10:22
 * @FilePath: /yuxiuproweb/src/api/money/log/index.js
 */
import request from "@/utils/request";

// 查询交易记录列表
export function listRecord(query) {
  return request({
    url: "/pro/transactionRecord/list",
    method: "get",
    params: query,
  });
}

// 查询交易记录详细
export function getRecord(transactionRecordId) {
  return request({
    url: "/pro/transactionRecord/" + transactionRecordId,
    method: "get",
  });
}

// 新增交易记录
export function addRecord(data) {
  return request({
    url: "/pro/transactionRecord",
    method: "post",
    data: data,
  });
}

//审核确认
export function updateProcess(data) {
  return request({
    url: "/pro/transactionRecord/audit",
    method: "post",
    data: data,
  });
}
// 修改交易记录
export function updateRecord(data) {
  return request({
    url: "/pro/transactionRecord",
    method: "put",
    data: data,
  });
}

// 删除交易记录
export function delRecord(transactionRecordId) {
  return request({
    url: "/pro/transactionRecord/" + transactionRecordId,
    method: "delete",
  });
}

//批量审核
export function sumbitRecord(ids) {
  return request({
    url: "/pro/transactionRecord/batchAudit?isprocess=1&ids=" + ids,
    method: "get",
  });
}
//弃审
export function handleabandon(data) {
  return request({
    url: "/pro/transactionRecord/abandoningReview/" + data,
    method: "post",
  });
}
